﻿@model UserInfo
<br /><br /><hr />
@*@using (Html.BeginForm("Login", "Form", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))*@
<div class="form-horizontal">
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary("", new { @class = "text-danger" })
        <div class="form-group">
            @Html.LabelFor(m => m.Name, new { @class = "col-md-2 control-label" })
            <div class="col-md-10">
                @Html.TextBoxFor(m => m.Name, new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(m => m.Pass, new { @class = "col-md-2 control-label" })
            <div class="col-md-10">
                @Html.PasswordFor(m => m.Pass, new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" class="btn btn-default" value="登  录" />
            </div>
        </div>
    }
</div>
<br /><hr />
<h2><a href="@Url.Action("Index","Model")">10.过度提交</a></h2>
@section Scripts{
    @Scripts.Render("~/JS/JQVal")
}